package com.aaa.a1105第三遍.demo01;

import java.util.stream.Stream;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test01 {
    public static void main(String[] args) {
        String[] arr={"s","e","s","a","o"};
        String[] arr1={"r","b","g","c","c"};
        Stream<String> stream=Stream.of(arr);
        Stream<String> stream1=Stream.of(arr1);

        //Stream.concat(stream,stream1).forEach(System.out ::println);

       // Stream.concat(stream,stream1).distinct().forEach(System.out ::println);


       // Stream.concat(stream,stream1).limit(6).forEach(System.out ::println);

        Stream.concat(stream,stream1).skip(4).forEach(System.out ::println);
    }
}
